import { Injectable } from '@angular/core';
import { HttpClient } from '../../../providers/httpClient';
import { Config } from '../../../providers/config';
import _ from 'lodash';
import { FlowParmeter } from '../../draft/detail/flowParmeter.model';
import { Common } from '../../../providers/common';
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';


@Injectable()
export class InfoListService {


	constructor(
		public httpClient: HttpClient,
		public config: Config,
		public flowParmeter: FlowParmeter,
		public common: Common,
		private sanitizer: DomSanitizer
	) { }

	getInfoDetail(params) {
    let postBody = {
      "module": "OAServer",
      "method": "getTaskInfoList",
      "params": {
        "tableName": params.tableName,
        "condition": params.condition
      }
    };
    return this.httpClient.post(postBody, {
      isShowLoading: true
    });
  }

}
